<?php
namespace app\pay\controller;
use think\Input;
class Index extends Common{
    public function initialize(){
        parent::initialize();
    }
    public function index(){   
        header('Access-Control-Allow-Origin:*');
        $this->assign('title','收银台'); 
        $sign=strtoupper(md5(input('appid').$this->sys['version']));
        $channelurl=$this->sys['url'].url('pay/api/channels',['shopid'=>input('shopid'),'appid'=>input('appid'),'sign'=>$sign]);
        $this->assign('channelurl',$channelurl);  
        return $this->fetch();
    } 
}